//
//  SIComposeTypeButton.swift
//  SinaImiate
//
//  Created by xiaoming on 16/7/9.
//  Copyright © 2016年 GoodJob. All rights reserved.
//

import UIKit

class SIComposeTypeButton: UIControl {

    @IBOutlet weak var imageView: UIImageView!
    
    @IBOutlet weak var titleLabel: UILabel!
    
    var clsName: String?
    
    class func composeTypeButton(imageName: String, title: String) -> SIComposeTypeButton {
        
        let nib = UINib(nibName: "SIComposeTypeButton", bundle: nil)
        
        let btn = nib.instantiate(withOwner: nil
            , options: nil)[0] as! SIComposeTypeButton
        
        btn.imageView.image = UIImage(named: imageName)
        btn.titleLabel.text = title
        
        return btn
    }
    
    

}
